
<%@page import="org.lxy.service.UserInfoService"%>
<%@page import="org.lxy.domain.UserInfoEntity"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String username = request.getParameter("username");
	String password = request.getParameter("password");
	String telephone = request.getParameter("telephone");
	userinfo user = new userinfo();
	user.setJifen(0);
	user.setPassword(password);
	user.setRole("用戶");
	user.setTelephone(telephone);
	user.setUsername(username);
	new userinfoService().add(user);
	out.write("<script>alert('注冊成功！');window.location.href='Login.jsp'</script>");
%>